/**
 * 专门存放请求成功和失败的响应对象
 */
//成功注册
const success = {code: "0000"}
//注册失败
const fail = {code: "0001"}
//json 格式错误
const error={code:"0002"}
//数据库增加用户错误
const dberror={
    code:"0003"
}
//登录成功
const loginsucess={code:"10000"}
//账号或密码错误
const loginfail={code:"10001"}
//房间查询错误
const roomQueryAllError={
    code:"2001"
}
//订单查询错误
const orderQueryAllError={
    code:"3001"
}
//订单插入错误
const orderInsertError={
    code:"4001"
}
/**
 * 非法用户信息 账号密码输入不全
 * @type {{code: string}}
 */

const invaliduser={
    code:"0004"
}
module.exports = {
    success,fail,error,dberror,invaliduser,loginsucess,loginfail,orderQueryAllError,orderInsertError
}